[INFO] cloning repository https://github.com/KieronSanghera/trade-platform
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KieronSanghera/trade-platform" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKieronSanghera%2Ftrade-platform", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKieronSanghera%2Ftrade-platform'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] b7fdd22edfa25700b8c4a1718ce01137beb2716e
[INFO] fixing KieronSanghera/trade-platform against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKieronSanghera%2Ftrade-platform" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/KieronSanghera/trade-platform
[INFO] finished tweaking git repo https://github.com/KieronSanghera/trade-platform
[INFO] tweaked toml for git repo https://github.com/KieronSanghera/trade-platform written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/KieronSanghera/trade-platform on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/KieronSanghera/trade-platform already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded tonic-build v0.14.4
[INFO] [stderr]   Downloaded tonic-prost-build v0.14.4
[INFO] [stderr]   Downloaded serial_test v3.4.0
[INFO] [stderr]   Downloaded serial_test_derive v3.4.0
[INFO] [stderr]   Downloaded rdkafka v0.39.0
[INFO] [stderr]   Downloaded libz-sys v1.1.23
[INFO] [stderr]   Downloaded rdkafka-sys v4.10.0+2.12.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 663094c0b17afae6ef9f1af8ab9b3df284460d3d78e0fcfb16447ce812348f37
[INFO] running `Command { std: "docker" "start" "663094c0b17afae6ef9f1af8ab9b3df284460d3d78e0fcfb16447ce812348f37", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "663094c0b17afae6ef9f1af8ab9b3df284460d3d78e0fcfb16447ce812348f37" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "663094c0b17afae6ef9f1af8ab9b3df284460d3d78e0fcfb16447ce812348f37", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "663094c0b17afae6ef9f1af8ab9b3df284460d3d78e0fcfb16447ce812348f37" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling libc v0.2.184
[INFO] [stderr]    Compiling bytes v1.11.1
[INFO] [stderr]     Checking mio v1.2.0
[INFO] [stderr]     Checking socket2 v0.6.3
[INFO] [stderr]    Compiling anyhow v1.0.101
[INFO] [stderr]    Compiling stable_deref_trait v1.2.1
[INFO] [stderr]    Compiling tracing-attributes v0.1.31
[INFO] [stderr]    Compiling tokio-macros v2.7.0
[INFO] [stderr]     Checking serde v1.0.228
[INFO] [stderr]     Checking futures-util v0.3.32
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]    Compiling thiserror-impl v2.0.18
[INFO] [stderr]    Compiling pulldown-cmark v0.13.0
[INFO] [stderr]    Compiling zerocopy v0.8.39
[INFO] [stderr]    Compiling cc v1.2.56
[INFO] [stderr]     Checking serde_json v1.0.149
[INFO] [stderr]    Compiling yoke v0.8.1
[INFO] [stderr]    Compiling typenum v1.19.0
[INFO] [stderr]    Compiling regex-syntax v0.8.9
[INFO] [stderr]    Compiling zerovec v0.11.5
[INFO] [stderr]    Compiling prettyplease v0.2.37
[INFO] [stderr]     Checking smallvec v1.15.1
[INFO] [stderr]    Compiling fixedbitset v0.5.7
[INFO] [stderr]    Compiling winnow v0.7.14
[INFO] [stderr]     Checking tokio v1.51.0
[INFO] [stderr]    Compiling rust_decimal v1.40.0
[INFO] [stderr]    Compiling petgraph v0.8.3
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling zerotrie v0.2.3
[INFO] [stderr]    Compiling getrandom v0.4.1
[INFO] [stderr]    Compiling tinystr v0.8.2
[INFO] [stderr]    Compiling icu_locale_core v2.1.1
[INFO] [stderr]    Compiling tempfile v3.25.0
[INFO] [stderr]     Checking tracing v0.1.44
[INFO] [stderr]    Compiling potential_utf v0.1.4
[INFO] [stderr]    Compiling toml_datetime v0.7.5+spec-1.1.0
[INFO] [stderr]     Checking arrayvec v0.7.6
[INFO] [stderr]    Compiling multimap v0.10.1
[INFO] [stderr]     Checking thiserror v2.0.18
[INFO] [stderr]     Checking chrono v0.4.44
[INFO] [stderr]    Compiling icu_collections v2.1.1
[INFO] [stderr]    Compiling libz-sys v1.1.23
[INFO] [stderr]    Compiling pulldown-cmark-to-cmark v22.0.0
[INFO] [stderr]    Compiling crypto-common v0.1.7
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling tonic-build v0.14.4
[INFO] [stderr]     Checking parking_lot_core v0.9.12
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling cmake v0.1.54
[INFO] [stderr]    Compiling regex-automata v0.4.14
[INFO] [stderr]     Checking parking_lot v0.12.5
[INFO] [stderr]    Compiling icu_properties_data v2.1.2
[INFO] [stderr]    Compiling futures-core v0.3.32
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking axum-core v0.5.6
[INFO] [stderr]    Compiling pin-project-internal v1.1.10
[INFO] [stderr]    Compiling rdkafka-sys v4.10.0+2.12.1
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]     Checking serde_path_to_error v0.1.20
[INFO] [stderr]    Compiling icu_provider v2.1.1
[INFO] [stderr]    Compiling icu_properties v2.1.2
[INFO] [stderr]    Compiling getrandom v0.2.17
[INFO] [stderr]    Compiling async-trait v0.1.89
[INFO] [stderr]    Compiling toml_parser v1.0.9+spec-1.1.0
[INFO] [stderr]    Compiling futures-sink v0.3.32
[INFO] [stderr]    Compiling toml_edit v0.23.10+spec-1.0.0
[INFO] [stderr]     Checking icu_normalizer v2.1.1
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]     Checking tracing-serde v0.2.0
[INFO] [stderr]     Checking pin-project v1.1.10
[INFO] [stderr]    Compiling tracing-core v0.1.36
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]    Compiling futures-io v0.3.32
[INFO] [stderr]    Compiling futures-task v0.3.32
[INFO] [stderr]     Checking matchers v0.2.0
[INFO] [stderr]    Compiling slab v0.4.12
[INFO] [stderr]    Compiling itertools v0.14.0
[INFO] [stderr]     Checking tracing-subscriber v0.3.23
[INFO] [stderr]     Checking idna_adapter v1.2.1
[INFO] [stderr]    Compiling proc-macro-crate v3.4.0
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling regex v1.12.3
[INFO] [stderr]    Compiling num_enum_derive v0.7.5
[INFO] [stderr]    Compiling unicode-normalization v0.1.25
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling futures-intrusive v0.5.0
[INFO] [stderr]     Checking shared v0.1.0 (/opt/rustwide/workdir/shared)
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling url v2.5.8
[INFO] [stderr]     Checking envy v0.4.2
[INFO] [stderr]    Compiling unicode-properties v0.1.4
[INFO] [stderr]    Compiling hkdf v0.12.4
[INFO] [stderr]     Checking tokio-util v0.7.18
[INFO] [stderr]     Checking tokio-stream v0.1.18
[INFO] [stderr]    Compiling futures-channel v0.3.32
[INFO] [stderr]    Compiling atoi v2.0.0
[INFO] [stderr]    Compiling md-5 v0.10.6
[INFO] [stderr]     Checking num_enum v0.7.5
[INFO] [stderr]     Checking crc v3.4.0
[INFO] [stderr]    Compiling stringprep v0.1.5
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling prost-derive v0.14.3
[INFO] [stderr]     Checking h2 v0.4.13
[INFO] [stderr]     Checking tower v0.5.3
[INFO] [stderr]     Checking byteorder v1.5.0
[INFO] [stderr]     Checking tokio-test v0.4.5
[INFO] [stderr]     Checking temp-env v0.3.6
[INFO] [stderr]     Checking sdd v3.0.10
[INFO] [stderr]     Checking futures-executor v0.3.32
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling serial_test_derive v3.4.0
[INFO] [stderr]    Compiling api-gateway-service v0.1.0 (/opt/rustwide/workdir/api-gateway-service)
[INFO] [stderr]     Checking sqlx-core v0.8.6
[INFO] [stderr]     Checking scc v2.4.0
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling prost v0.14.3
[INFO] [stderr]     Checking prost-types v0.14.3
[INFO] [stderr]     Checking serial_test v3.4.0
[INFO] [stderr]    Compiling prost-build v0.14.3
[INFO] [stderr]     Checking sqlx-postgres v0.8.6
[INFO] [stderr]     Checking hyper v1.8.1
[INFO] [stderr]    Compiling tonic-prost-build v0.14.4
[INFO] [stderr]    Compiling trade-service v0.1.0 (/opt/rustwide/workdir/trade-service)
[INFO] [stderr]    Compiling portfolio-service v0.1.0 (/opt/rustwide/workdir/portfolio-service)
[INFO] [stderr]     Checking hyper-util v0.1.20
[INFO] [stderr]     Checking hyper-timeout v0.5.2
[INFO] [stderr]     Checking axum v0.8.8
[INFO] [stderr]     Checking rdkafka v0.39.0
[INFO] [stderr]     Checking tonic v0.14.5
[INFO] [stderr]    Compiling sqlx-macros-core v0.8.6
[INFO] [stderr]    Compiling sqlx-macros v0.8.6
[INFO] [stderr]     Checking tonic-prost v0.14.5
[INFO] [stderr]     Checking sqlx v0.8.6
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> portfolio-service/src/db/postgres.rs:33:24
[INFO] [stdout]    |
[INFO] [stdout] 33 |           let existing = sqlx::query!(
[INFO] [stdout]    |  ________________________^
[INFO] [stdout] 34 | |             "SELECT quantity, avg_price FROM positions WHERE user_id = $1 AND asset = $2",
[INFO] [stdout] 35 | |             &*trade.user_id,
[INFO] [stdout] 36 | |             &*trade.asset
[INFO] [stdout] 37 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> portfolio-service/src/db/postgres.rs:33:24
[INFO] [stdout]    |
[INFO] [stdout] 33 |           let existing = sqlx::query!(
[INFO] [stdout]    |  ________________________^
[INFO] [stdout] 34 | |             "SELECT quantity, avg_price FROM positions WHERE user_id = $1 AND asset = $2",
[INFO] [stdout] 35 | |             &*trade.user_id,
[INFO] [stdout] 36 | |             &*trade.asset
[INFO] [stdout] 37 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> portfolio-service/src/db/postgres.rs:102:9
[INFO] [stdout]     |
[INFO] [stdout] 102 | /         sqlx::query!(
[INFO] [stdout] 103 | |             "INSERT INTO positions (user_id, asset, quantity, avg_price)
[INFO] [stdout] 104 | |             VALUES ($1, $2, $3, $4)
[INFO] [stdout] 105 | |             ON CONFLICT (user_id, asset)
[INFO] [stdout] ...   |
[INFO] [stdout] 110 | |             *position.avg_price
[INFO] [stdout] 111 | |         )
[INFO] [stdout]     | |_________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> portfolio-service/src/db/postgres.rs:120:9
[INFO] [stdout]     |
[INFO] [stdout] 120 | /         sqlx::query!(
[INFO] [stdout] 121 | |             "DELETE FROM positions WHERE user_id = $1 AND asset = $2",
[INFO] [stdout] 122 | |             user_id,
[INFO] [stdout] 123 | |             asset
[INFO] [stdout] 124 | |         )
[INFO] [stdout]     | |_________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> portfolio-service/src/db/postgres.rs:102:9
[INFO] [stdout]     |
[INFO] [stdout] 102 | /         sqlx::query!(
[INFO] [stdout] 103 | |             "INSERT INTO positions (user_id, asset, quantity, avg_price)
[INFO] [stdout] 104 | |             VALUES ($1, $2, $3, $4)
[INFO] [stdout] 105 | |             ON CONFLICT (user_id, asset)
[INFO] [stdout] ...   |
[INFO] [stdout] 110 | |             *position.avg_price
[INFO] [stdout] 111 | |         )
[INFO] [stdout]     | |_________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> portfolio-service/src/db/postgres.rs:137:20
[INFO] [stdout]     |
[INFO] [stdout] 137 |           let rows = sqlx::query_as!(
[INFO] [stdout]     |  ____________________^
[INFO] [stdout] 138 | |             RawPosition,
[INFO] [stdout] 139 | |             "SELECT user_id, asset, quantity, avg_price FROM positions WHERE user_id = $1",
[INFO] [stdout] 140 | |             user_id
[INFO] [stdout] 141 | |         )
[INFO] [stdout]     | |_________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> portfolio-service/src/db/postgres.rs:120:9
[INFO] [stdout]     |
[INFO] [stdout] 120 | /         sqlx::query!(
[INFO] [stdout] 121 | |             "DELETE FROM positions WHERE user_id = $1 AND asset = $2",
[INFO] [stdout] 122 | |             user_id,
[INFO] [stdout] 123 | |             asset
[INFO] [stdout] 124 | |         )
[INFO] [stdout]     | |_________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> portfolio-service/src/db/postgres.rs:137:20
[INFO] [stdout]     |
[INFO] [stdout] 137 |           let rows = sqlx::query_as!(
[INFO] [stdout]     |  ____________________^
[INFO] [stdout] 138 | |             RawPosition,
[INFO] [stdout] 139 | |             "SELECT user_id, asset, quantity, avg_price FROM positions WHERE user_id = $1",
[INFO] [stdout] 140 | |             user_id
[INFO] [stdout] 141 | |         )
[INFO] [stdout]     | |_________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `model::RawPosition`
[INFO] [stdout]  --> portfolio-service/src/db/postgres.rs:3:26
[INFO] [stdout]   |
[INFO] [stdout] 3 |     db::{error::DbError, model::RawPosition},
[INFO] [stdout]   |                          ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `model::RawPosition`
[INFO] [stdout]  --> portfolio-service/src/db/postgres.rs:3:26
[INFO] [stdout]   |
[INFO] [stdout] 3 |     db::{error::DbError, model::RawPosition},
[INFO] [stdout]   |                          ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `portfolio-service` (lib) due to 4 previous errors; 1 warning emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `portfolio-service` (lib test) due to 4 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "663094c0b17afae6ef9f1af8ab9b3df284460d3d78e0fcfb16447ce812348f37", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "663094c0b17afae6ef9f1af8ab9b3df284460d3d78e0fcfb16447ce812348f37", kill_on_drop: false }`
[INFO] [stdout] 663094c0b17afae6ef9f1af8ab9b3df284460d3d78e0fcfb16447ce812348f37
